import { Component } from 'react';
import { Route, Routes } from 'react-router-dom';
import MyLink from '../router-item/myLink';
import Dome2 from './Dome2';
class Dome extends Component {
  state = {};
  goPush() {}
  render() {
    console.log(this.props, 'demo');

    return (
      <div>
        <h1>一级路由</h1>
        <hr />
        <hr />
        <MyLink to="/dome/dome2" children="嵌套路由" />
        <hr />
        <hr />
        <hr />
        <hr />
        <Routes>
          <Route path="/dome2/*" element={<Dome2 />} />
        </Routes>
      </div>
    );
  }
}

export default Dome;
